package by.msokoloff.javaweb2015.dataaccess;

import java.util.Date;
import java.util.List;

import by.msokoloff.javaweb2015.datamodel.Airport;
import by.msokoloff.javaweb2015.datamodel.Flight;

public interface FlightDao extends AbstractDao<Flight> {
	
	List<Flight> getDirectFlights(Airport depAirport, Airport dstAirport, Date date);
	
	List<Flight> getDirectFlights(Airport depAirport, Airport dstAirport, Date fromDate, Date toDate);

	List<List<Flight>> getInDirectFlights(Airport depAirport, Airport dstAirport, Date date);
	
	List<List<Flight>> getInDirectFlights(Airport depAirport, Airport dstAirport, Date fromDate, Date toDate);
	
}
